import axios from "@/utils/axios";

export function getOrders() {
  return axios.get("/api/orders");
}

export function createOrder(data) {
  return axios.post("/api/orders", data);
}

export function cancelOrder(orderId) {
  return axios.delete(`/api/orders/${orderId}`);
}
